@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.none{display:none!important}
.block{display:block}
.inline{display:inline}
.inline-block{display:inline-block}
.inline-flex{display:inline-flex}

.flex{display:flex}                                                       /* --横向排列-水平左对齐-- */
.flex-w{display:flex;flex-wrap:wrap}                                      /* --横向排列-水平左对齐，可换行-- */
.flex-ac{display:flex;align-items:center}                                 /* --横向排列-水平左对齐，垂直居中对齐-- */

.flex-jc{display:flex;justify-content:center}                             /* --横向排列-水平居中对齐-- */
.flex-jc-w{display:flex;justify-content:center;flex-wrap:wrap}            /* --横向排列-水平居中对齐，可换行-- */
.flex-cc{display:flex;justify-content:center;align-items:center}          /* --横向排列-水平居中对齐，垂直居中对齐-- */
.flex-ce{display:flex;justify-content:center;align-items:flex-end}        /* --横向排列-水平居中对齐，垂直低对齐-- */
.flex-cs{display:flex;justify-content:center;align-items:flex-start}      /* --横向排列-水平居中对齐，垂直顶对齐-- */

.flex-sa{display:flex;justify-content:space-around}                       /* --横向排列-水平两边对齐（两边有空隙）-- */
.flex-sac{display:flex;justify-content:space-around;align-items:center}   /* --横向排列-水平两边对齐（两边有空隙）垂直居中对齐-- */

.flex-sb{display:flex;justify-content:space-between}                      /* --横向排列-水平两边对齐-- */
.flex-sb-w{display:flex;justify-content:space-between;flex-wrap:wrap}     /* --横向排列-水平两边对齐，可换行-- */
.flex-sbc{display:flex;justify-content:space-between;align-items:center}  /* --横向排列-水平两边对齐，垂直居中对齐-- */

.flex-y{display:flex;flex-direction:column}                                                     /* --纵向排列，水平左对齐-- */
.flex-y-ac{display:flex;flex-direction:column;align-items:center}                               /* --纵向排列，水平居中对齐-- */
.flex-y-cc{display:flex;flex-direction:column;justify-content:center;align-items:center}        /* --纵向排列，水平居中对齐，垂直居中对齐-- */
.flex-y-sb{display:flex;flex-direction:column;justify-content:space-between}                    /* --纵向排列，垂直两边对齐-- */
.flex-y-sbc{display:flex;flex-direction:column;justify-content:space-between;align-items:center}/* --纵向排列，水平居中对齐，垂直两边对齐-- */

.flex1{flex:1}

.f-l{float:left}
.f-r{float:right}

.f-s50{font-size:50px}

//操作栏样式
.operate-container {
  margin-top: 10px;
  line-height: 32px;
}

.operate-container .btn-add {
  float: right;
  margin-left: 15px
}

//表格栏样式
.table-container {
  margin-top: 10px;
}

// 分页组件样式
.table-pagination {
  margin-top: 20px;
}

// 树形结构样式
.tree-border {
  margin-top: 5px;
  border: 1px solid #e5e6e7;
  background: #fff none;
  border-radius: 4px;
}
